import request from '../utils/Request';

export const getHomeNavigation = (data = {}) => {
  return request({
    url: '/navigation/list',
    method: 'get',
    params: data,
  });
};

export const getNavigationUrl = id => {
  return request({
    url: `/navigation/${id}`,
    method: 'get',
  });
};

export const login = data => {
  return request({
    url: `/auth/token`,
    method: 'post',
    data,
  });
};
